package com.qfedu.api.controller;


import com.qfedu.api.service.userLoginService;
import com.qfedu.fmmall.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
public class userLoginController {

    @Autowired
    private userLoginService userLoginService;

    @GetMapping(value = "/user/login")
    public ResultVo Login(@RequestParam("username") String name,
                          @RequestParam("password") String pwd){
        ResultVo resultVo = userLoginService.checkLogin(name, pwd);
        return resultVo;
    }
}
